package com.z.dao;

import com.z.pojo.Goods;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 张福兴
 * date 2021/9/1
 */
public interface GoodsDao {
    List<Goods> selectGoodsByTid(Integer nowpage, Integer eachcount, String term) throws SQLException;
    Integer count(String term) throws SQLException;
    Goods selectOneByGid(Integer gid) throws SQLException;
    Integer insertGoods(Goods goods) throws SQLException;
    Integer deleteGoods(Integer gid) throws SQLException;
    Integer updataGoods(Goods goods) throws SQLException;
}
